function   par = smolayak_generate_par_with_vector( parameters_vec,  par_input  )
% Usage: par_output = update_par_with_vector( parameters_vec,  par  )
% Set the corresponding parameters in par according to a parameter vector.

par = par_input;
par.AL =                      parameters_vec(1);
par.AH =                      parameters_vec(2) +  parameters_vec(1);
par.lambda_H =            parameters_vec(3);
par.lambdaLH =            parameters_vec(4);
par.lambdaHL =            parameters_vec(5);
par.sigmaK =               parameters_vec(6);
par.eta =                      parameters_vec(7);

if(strcmp(par.model_name,'benchmark'))
    par.lambda_L = par.lambda_H - 0.001;  % In benchmark model, use a very tight grid to proxy for no change in belief. 
end